<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
<title>飞腾会-FitaClub</title>
<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>
</head>
<!-- end header -->

<body>
  <div class="page-group">
    <div class="page page-current bg-light-gray">
      <header class="bar bar-nav fita-header">
        <a href="javascript:history.back(-1);" class="icon icon-left pull-left"></a>
        <a class="icon icon-menu pull-right open-panel"></a>
        <h1 class="title">FITA招募</h1>
      </header>
      <div class="content profile-recruit-content">

				<form method="get" action="${ctx.host}/profile/secondary-agents/create-recruit-poster">
					<h5 style="margin: .75rem 0 .5rem .75rem;">招募规则：</h5>
					<div class="rule">
						<p class="no-margin">1.您可通过分享本页面生成的海报，招募您的私人FITA</p>
						<p class="no-margin">2.您可设置招募到的FITA的提成率（1%~10%），该FITA的所见的价格即为您所见价格的上浮若干百分比。</p>
						<p class="no-margin">3.提成获取规则</p>
					</div>
					<div class="range-wrap">
						<span style="font-size: .7rem; font-weight: bold;">设置提成率：</span>
						<span class="iconfont iconfont-minus"></span>
						<input name="rate" id="commission-rate" class="single-slider" type="hidden" value="0"/>
						<span class="iconfont iconfont-plus"></span>
					</div>
					<div style="margin: 2rem .5rem 0">
						<button type="submit" class="button create-button" style="width: 100%;margin: 0 auto">生成招募海报</button>
					</div>
					<div id="qrcode"></div>
				</form>
      </div>
    </div>
    
    <div class="panel-overlay"></div>
    <div class="panel panel-right panel-cover fita-panel">
      <div class="list-block contacts-block no-margin">
        <p class="menu-title close-panel">关闭</p>
	      <ul>
	        <li>
	          <a href="${ctx.host}/cars/search" class="item-content item-link">
	            <div class="item-inner">
	              <div class="item-title">立即租车</div>
	            </div>
	          </a>
	        </li>
	        <li>
	          <a href="${ctx.host}/profile" class="item-content item-link">
	            <div class="item-inner">
	              <div class="item-title">个人中心</div>
	            </div>
	          </a>
	        </li>
	      </ul>
      </div>
    </div>
  </div>
  <!-- <a ctx.host="/order/order-staying-list">保留预定</a>
  <a ctx.host="/order/order-unpaid-list">未支付</a>
  <a ctx.host="/order/order-paid-list">已支付</a>
  <a ctx.host="/order/order-finished-list">已完成</a> -->
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <d:resource type="script" root="${ctx.resource}/build" src="js/page/profile/secondary-agent-recruit.js" />
  <script type="text/javascript">
    require(['page/profile/secondary-agent-recruit'], function(page) {
      page.init()
    })
  </script>
 
</body>
</html>